package top.soulblack.purchasesale.model;

import com.alibaba.fastjson.annotation.JSONField;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

public class GoodsClassify {
    @JSONField(name = "id")
    private Integer id;

    @JSONField(name="text")
    private String name;

    @JSONField(name="nodes")
    public List<GoodsClassify> nodes = null;
    public String remarks;

    private Integer pId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    @Override
    public String toString() {
        return super.toString();
    }

    public void setChildren(List<GoodsClassify> goodsClassifies){
        this.nodes = goodsClassifies;
    }
}